package apiday02;

public class SplitDemo {
    public static void main(String[] args) {
        String str = "BOO:and:Foo";
        String[] arr = str.split(":");
        for (int i = 0;i< arr.length;i++){
            System.out.println(arr[i]);
        }

    }
}
